<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>秒杀管理</title>
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta name="renderer" content="webkit">
<!-- 包含 bootstrap 样式表 -->
<link href="css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/gVerify.js"></script>
</head>
<body>

	<div class="header">
		<div class="logo">
			<img src="images/gz_logo.png" />
		</div>
		<div class="sysName">
			<div class="sysTitle">秒杀活动管理平台</div>
			<div class="englishTitle">Second Kill Activity Management
				Platform</div>
		</div>

	</div>
	<div class="banner">
		<div class="user_login">
			<div class="user_tit">
				<div class="login_tit">管理平台 登录</div>
				<div id="tab1" class="info">
					<form action="/loginSystem" method="post" class="adduser-form">
						<label> <span class="text-form1">账&nbsp;&nbsp;&nbsp;&nbsp;号:</span>
							<input id="name" name="name" type="text" class="t2" />
						</label> <label> <span class="text-form1">密&nbsp;&nbsp;&nbsp;&nbsp;码:</span>
							<input id="password" name="password" type="password" class="t2" />
						</label> <label> <span class="text-form1">验证码:</span> <input
							id="code" name="code" type="text" class="t2_1" /> <span
							id="v_container"
							style="display: inline-block; vertical-align: middle; width: 75px; height: 30px;"></span>
						</label> <span class="but"> <input id="onSubmit" type="submit"
							class="btn_ok" value="&nbsp;&nbsp;登录&nbsp;&nbsp;"
							onsubmit="return click()" /> <input type="reset"
							class="btn_cancel" value="&nbsp;&nbsp;重置&nbsp;&nbsp;" />
						</span>
					</form>
				</div>
				<div align="center">
					<font id="error" color="red" size="2">&nbsp;</font>
				</div>
			</div>
		</div>

	</div>
	<div class="clear" id="showjr" style="text-align: center;"></div>
	<div class="footer">
		<div id="copyright">
			<p>
				<span class="copy">Copyright &copy; 2019</span> 个人 版权所有 <br />
				技术支持:电话访问<br />技术热线:<span class="copy">1843522366*</span>
			</p>
		</div>
	</div>

	<script type="text/javascript">
    var verifyCode = new GVerify("v_container");    //必须有这个,否则验证码脚本不起作用
    $("#onSubmit").click(function (e) {
    var name = document.getElementById("name").value;
    if(!name){
		alert("管理员账号不能为空");
		return false;
	}                                    
	var password = document.getElementById("password").value;
	    if(!password){
			alert("密码不能为空");
			return false;
		}  
	var code = verifyCode.validate(document.getElementById("code").value);
		if(!code){
			alert("图形验证码错误");
			return false;
		} 
    });    	        
</script>
</body>
</html>